﻿<%namespace YouHP.Model%>
<%namespace YouHP.Utility%>

<%template _Header%>
<div class="layout-cols2">
	
     <div class="col1">
  <%if IsPost%>
      <%template _msgbox%>
  <%else%>    
        <%csharp%>TempUrl = "/User/ActionPost.aspx"; <%/csharp%>
            <form id="feedback" name="feedback" method="post" action="">
     
	    <script type="text/javascript">
		    function SubmitReplyForm()
		    {
		        var msg = document.feedback.msg.value.trim();
		        if (msg.length == 0)
                {
                    alert("评论内容不能为空！");
                    return;
                }
                else
                {
                    _$('feedback').submit();
                }
		    }
		</script>
		<div>
		<div class="box">
		    <div class="caption">
		        选择您的好友
		    </div>
		    <div class="content">
	            <table class="tbl-data">
	                <col style="width:40px; text-align:center" />
	                <col style="width:160px;" />
	                <thead><tr>
	                    <th>选择</th>
	                    <th>姓名</th>
	                    <th>电子邮箱</th>
	                    <th>发短消息</th>
	                    <th></th>
	                </tr></thead>
	                <tbody>
	                    <%csharp%>
	                    foreach(UserInfo item in FriendDataList)
	                    {
	                        
	                    <%/csharp%>
	                    <tr>
	                        <td><input name="itemid" id="id{item.Id}" type="checkbox" value="{item.Id}" /></td>
	                        <%csharp%>TempUrl = "/Profile.aspx?uid=" + item.Id;<%/csharp%>
	                        <td><a href="{this.GetUrl(TempUrl)}">{item.UserName}</a></td>	                        
                            <td>{item.Email}</td>
                            <%csharp%>TempUrl = "/User/PostPm.aspx?msgto=" + item.Id; <%/csharp%>
                            <td><a href="{this.GetUrl(TempUrl)}">发送短消息</a></td>	  
                            <td></td>
	                    </tr>
	                    <%csharp%> } <%/csharp%>
	                    <thead>
	                        <tr>
	                            <th></th>
	                            <th></th>
	                            <th></th>
	                            <th></th>
	                            <th></th>
	                        </tr>
	                    </thead>
	                </tbody>
	            </table>
		    </div>
		</div>
		
	    <div class="box">
	        <div class="caption">
	            表情
	        </div>
	        <div class="content">


	                <div id="plshow">
	                    <p>&nbsp;&nbsp;</p>
                        <table width="100%">                            
                            <tr>
                                <%csharp%> for (int i=0; i < Constants.HugTypeCount; i ++) { <%/csharp%>
                                <td width="80">
                                    <table>
                                        <tr height="35">
                                            <td align="center">
                                                <img src="{Utils.GetHugUrl(i)}" " />
                                            </td>
                                        </tr>
                                        <tr height="20">
                                            <td align="center">
                                                <span>{Utils.GetHugText(i)}</span>
                                            </td>
                                        </tr>
                                        <tr height="20">
                                            <td align="center">
                                                <input type="radio" class="radio" id="hugtype{i}" name="hugtype" value="{i}" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <%csharp%> } <%/csharp%>
                                <td>&nbsp;&nbsp;</td>
                            </tr>
                        </table>
                        <script type="text/javascript">
                            _$('hugtype0').checked = true;
                        </script>
	                    
	                    <div class="bor"> 
                            <textarea name="msg" cols="110" rows="6" id="msg" class="rev_textarea"></textarea>
                        </div>
                        &nbsp;&nbsp;撒播爱的种子
                        &nbsp;&nbsp;&nbsp;&nbsp;<input name="sb" type="button" value="马上提交" class="btn" onClick='SubmitReplyForm();' />
                    </div>
                
                 <p>&nbsp;&nbsp;</p>
            </div>
	    </div>
	    </div>
	     </form>
   <%/if%>	     
	</div>
	
	 <div class="col2">
	
		<%template _Menu%>
	           
	</div>
	
</div>

<%template _footer%>